package com.ssy.lingxi.purchase.api.enums.purchase;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 采购确认报价单工作流内部状态枚举
 */
public enum ConfirmQuotedPriceQueryEnum {
    CANCEL(-1, "已作废"),
    QUOTATION_INQUIRY(1, "报价查询"),
    STAY_PRICE_PARITY(2, "待比价"),
    STAY_EXAMINE_AWARD_RESULTS2(4, "待审核授标结果(二级)"),
    STAY_EXAMINE_AWARD_RESULTS1(3, "待审核授标结果(一级)"),
    STAY_CONFIRM_AWARD_RESULTS(5, "待确认授标结果");

    private Integer type;
    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.type);
    }

    public void setName(String name) {
        this.name = name;
    }

    ConfirmQuotedPriceQueryEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
